Skip to content

#26 Frontend: Add form validation to project creation - #154

Merged
Smartdevs17 merged 6 commits into
Smartdevs17:mainfrom
OluwapelumiElisha:add-form-validation-to-project-creation
Mar 27, 2026
Merged

#26 Frontend: Add form validation to project creation#154
Smartdevs17 merged 6 commits into
Smartdevs17:mainfrom
OluwapelumiElisha:add-form-validation-to-project-creation

Conversation

@OluwapelumiElisha

@OluwapelumiElisha OluwapelumiElisha commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Closes #26


Summary

Adds client-side validation to the Project Creation form to prevent invalid submissions and improve user experience. #26

Changes Made

Integrated Zod schema validation with existing react-hook-form setup
Added validation for:
Freelancer address format
Amount (must be a positive number)
Deadline (must be a future date)
Implemented inline error messages for better user feedback
Prevented form submission when inputs are invalid

Files Updated

frontend/app/dashboard/projects/new/page.tsx

How to Test

Try submitting the form with:
Invalid address → should show error
Negative or empty amount → should fail validation
Past date → should show error
Ensure valid inputs submit successfully

Result

Improved data integrity
Better user experience with real-time feedback
Reduced invalid requests to backend

#26

@vercel

vercel Bot commented Mar 26, 2026

Copy link
Copy Markdown

@OluwapelumiElisha is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Mar 26, 2026

Copy link
Copy Markdown

@OluwapelumiElisha Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@OluwapelumiElisha

OluwapelumiElisha commented Mar 26, 2026

Copy link
Copy Markdown
Contributor Author

@Smartdevs17,

Please kindly check the PR 🙏🙏🙏

@Smartdevs17

Copy link
Copy Markdown
Owner

merge conflicts.

@OluwapelumiElisha

Copy link
Copy Markdown
Contributor Author

@Smartdevs17

Please Kindly check i have solved the conflicts

@Smartdevs17

Copy link
Copy Markdown
Owner

merge conflict chechk the header.tsx

@OluwapelumiElisha

Copy link
Copy Markdown
Contributor Author

@Smartdevs17

Done. thank you

@Smartdevs17
Smartdevs17 merged commit ab6f044 into Smartdevs17:main Mar 27, 2026
4 of 7 checks passed
@Smartdevs17

Copy link
Copy Markdown
Owner

LGTM. Kindly drop a review. Thank you.

@OluwapelumiElisha

Copy link
Copy Markdown
Contributor Author

Done. Kindly drop a review. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend: Add form validation to project creation

2 participants